***Author: Clemens Noelke
***This version 01/11/2016

noi di in yellow "ChkSrt: " in green _col(20) "syntax varlist, [FAST] [MISSOK]" in yellow "  Checks/sorts."

cap program drop ChkSrt
program define ChkSrt
syntax varlist, [FAST] [MISSOK]

if "`fast'"=="fast" {
	fisid `varlist', `missok'
	sort `varlist'
}
else {
	isid `varlist', `missok'
	sort `varlist'
}
	
end

exit
